package com.wusuowei.shiro_jwt.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.wusuowei.shiro_jwt.model.po.Category;
import com.wusuowei.shiro_jwt.model.po.Product;
import com.wusuowei.shiro_jwt.model.po.User;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;


/**
 * 
 * 
 * @author 夏沫止水
 * @email HeJieLin@gulimall.com
 * @date 2024-05-01 14:03:02
 */

public interface CategoryMapper extends BaseMapper<Category> {
    @Select("SELECT * FROM category WHERE id = #{id} ")
    Category getCategoryById(Integer id);
    Page<Category> findPage(Page<Category> page, @Param("cname") String cname);
}
